using UnityEngine;
using System.Collections;

public class Highscore : MonoBehaviour {
	public bool scores = true;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI()
	{
		if(GUI.Button(new Rect(220,80,200,20), "Main Menu"))
		{
			Application.LoadLevel(0);
		}
		
		if(scores)
	{
	int fstScore = PlayerPrefs.GetInt("0HScore");
	int sndScore = PlayerPrefs.GetInt("1HScore");
	int trdScore =PlayerPrefs.GetInt("2HScore");
		string fstName = PlayerPrefs.GetString("0HScoreName");
		string sndName = PlayerPrefs.GetString("1HScoreName");
		string trdName = PlayerPrefs.GetString("2HScoreName");
			
		GUILayout.Space(10);
		GUILayout.Label("Scores:");
		GUILayout.Space(5);
			
		GUILayout.Label("1st: - " +fstName + " - "+ fstScore.ToString());
		GUILayout.Label("2nd: - " +sndName + " - "+ sndScore.ToString());
		GUILayout.Label("3rd: - " +trdName + " - "+ trdScore.ToString());
	}
	}
	
	
	
			
}
